package com.model.dto.sys.userController;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Author: zql
 * @Description: 重置密码
 * @Data: 9:18 2021/7/23
 */
@Data
public class ResetPasswordDTO {
    @ApiModelProperty(value = "临时密钥",required = true)
    String passwordKey;

    @ApiModelProperty(value = "密码不能为空，密码长度限制为6~16，至少1个字母，1个数字和1个特殊字符",required = true)
    @NotNull(message = "密码不能为空")
    @Size(min = 6, max = 16, message = "密码长度限制为16")
    // @Pattern(regexp = "^(?=.*[A-Za-z])(?=.*\\d)(?=.*[$@$!%*#?&])[A-Za-z\\d$@$!%*#?&]{8,16}$", message = "新密码长度限制为8~16，至少1个字母，1个数字和1个特殊字符")
    String newPassword;
}
